/**
 * 挂载API接口
 */
const modules = import.meta.glob('./modules/*.ts');
const api: any = {}
for (const path in modules) {
  modules[path]().then((mod) => {
    // @ts-ignore
    const apiName = path.split('/').pop().replace(/\.\w+$/, '')
    api[apiName] = mod
  })
}
export default api
